package app.beit.fintrack.ws.iam.client;

import java.net.MalformedURLException;
import java.net.URL;

import app.beit.fintrack.ws.iam.Authentication;
import app.beit.fintrack.ws.iam.AuthenticationImplService;

public class IAMWebserviceClient{
	
	private static Authentication authentication;

	public IAMWebserviceClient(final String wsdlPath) {
		try {
			final AuthenticationImplService service = new AuthenticationImplService(new URL(wsdlPath));
	        authentication = service.getAuthenticationImplPort();  
		} catch (MalformedURLException e) {
			e.printStackTrace();
		}
	}
	
	public Authentication getAuthenticationWebservice(){
        return authentication;
	}
	
}
